package com.tuanzi.loan.business.repository.family;


import com.tuanzi.loan.business.entity.family.LoanAdvert;
import com.tuanzi.loan.business.repository.family.custom.LoanAdvertRepositoryCustom;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface LoanAdvertRepository extends JpaRepository<LoanAdvert,Long>, LoanAdvertRepositoryCustom {

	LoanAdvert findFirstByAdvertSpaceOrderByPositionDesc(Integer advertSpace);

	List<LoanAdvert> findByAdvertSpaceAndActivityId(Integer advertSpace, Long activityId);
}
